<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr class="li_1">
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr class="li_2">
		<td nowrap align="right"><span class="color_red">*</span>链条名称：</td>
		<td nowrap colspan="3">	
			  
			  <input type="hidden"  id="sub_grant_code"  value="<x:out select="$xmlData/data/proposal/sub_grant_code" />"/>
		     <input type="hidden"  label="链条名称" class="required" id="firstTechValue" name="proposal/first_tech_value"  value="<x:out select="$xmlData/data/proposal/first_tech_value" />"/>
		     <input type="hidden"  id="firstTechName" name="proposal/first_tech_name"  value="<x:out select="$xmlData/data/proposal/first_tech_name" />"/>
		     <select id="first_tech" name="first_tech" onChange="initControlValue('first_tech');changeFirstTech()"  width="150px">
		        <option value=""></option>
		     </select>
		</td>
	</tr>
	<tr class="li_1">
		<td nowrap align="right" nowrap><span class="color_red">*</span>产业创新点：</td>
		<td nowrap colspan="3">
		    <input type="hidden"  label="产业创新点" class="required" id="secondTechValue" name="proposal/second_tech_value"  value="<x:out select="$xmlData/data/proposal/second_tech_value" />"/>
		    <input type="hidden"  id="secondTechName" name="proposal/second_tech_name"  value="<x:out select="$xmlData/data/proposal/second_tech_name" />"/>
		    <select id="second_tech" name="second_tech" onChange="initControlValue('second_tech')" width="150px">
		         <option value=""></option>
		    </select>
		</td>
	</tr>
	
	
	
	
	
	
<script type="text/javascript">
$(document).ready (function() {
	//初始化所属一级学科
	var firstTechCode=$("[name='proposal/first_tech_value']").val();
	var firstTechValue="";

	
	if(firstTechCode != "")//如果有值
		firstTechValue = firstTechCode;
	var sub = $("#sub_grant_code").val();
	var key;
	
	if(sub=="514"){
		key = "tech_special1";
	}
	
	if(sub=="515"){
		key = "tech_special2";
	}
	
	if(sub=="516"){
		key = "tech_special3";
	}
	
	
	var firstTechParams = {"key":key,"cacheable":"false","sqlParamVal":""};
	loadAjaxSelect("first_tech",ctx+"/cpt/ajaxload-select",firstTechParams,firstTechValue);
	//初始化所属二级学科
	
	var secondTechValue="";
 	var secondTechCode=$("[name='proposal/second_tech_value']").val();
 	if(secondTechCode != "")//如果有值
 		secondTechValue = secondTechCode;
	
	var secondTechParams = {"key":"tech_special4","cacheable":"false","sqlParamVal":"{'code':'"+firstTechCode+"%'}"};
	loadAjaxSelect("second_tech",ctx+"/cpt/ajaxload-select",secondTechParams,secondTechValue);
	
	$("#first_tech").addClass("selectWidth2");
	$("#second_tech").addClass("selectWidth2");
	
});
    
    
function changeFirstTech(sub) {
	
	var value = $("#first_tech option:selected").val();
	//var name = $("#first_tech option:selected").text();
	$("#second_tech").empty();
	$("#second_tech").append("<option value=''></option>");
	$("[name^='proposal/second_tech_']").val("");
	// ajax加载附注说明
	
	var lop = $("#firstTechName").val();
	var key ="";
	if(lop!=""&&lop!=null){
		key = "tech_special4"
		
	}
	
	var secondTechParams = {
		"key" : key,
		"cacheable" : "false",
		"sqlParamVal" : "{'code':'" + value + "%'}"
	};
	loadAjaxSelect("second_tech", ctx + "/cpt/ajaxload-select",secondTechParams);
}
</script>
	
	<tr class="li_2">
		<td   align="right" width="20%"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" width="20%">项目类别：</td>
		<td  colspan="3">
			<x:out select="$xmlData/data/proposal/grant_name" /> 
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" width="20%"><span class="color_red">*</span>项目实施地点：</td>
		<td  colspan="3">
			<input name="proposal/address" label="项目实施地点" type="text" required class="input_css required"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>项目活动类型：</td>
	<td nowrap  colspan="3" valign="middle">
	<label> <input type="checkbox" class="do " id="advant_01" style="vertical-align: middle;" name="activity" label="应用基础研究" value="01" /><span style="vertical-align: middle;">应用基础研究</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_02" style="vertical-align: middle;" name="activity" label="应用开发" value="02" /><span style="vertical-align: middle;">应用开发</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_03" style="vertical-align: middle;" name="activity" label="产业化开发" value="03" /><span style="vertical-align: middle;">产业化开发</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="checkbox" class="do " id="advant_04" style="vertical-align: middle;" name="activity" label="其他" value="04" /><span style="vertical-align: middle;">其他</span></label>&nbsp; &nbsp; &nbsp; 
	<input type="hidden" name="proposal/activity_value" id="activity_value" class="required" value="<x:out select="$xmlData/data/proposal/activity_value" />" label="项目活动类型" /> 
	<input type="hidden" name="proposal/activity_name" id="activity_name" value="<x:out select="$xmlData/data/proposal/activity_name" />" label="项目活动类型" /></td>
	</tr>
	<tr class="li_2">
	<td align="right"><span class="color_red">*</span>创新类型：</td>
	<td nowrap  colspan="3" valign="middle">
	<label> <input type="checkbox" class="do " id="advant_011" style="vertical-align: middle;" name="innovate" label="原始创新" value="01" /><span style="vertical-align: middle;">原始创新</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_021" style="vertical-align: middle;" name="innovate" label="集成创新" value="02" /><span style="vertical-align: middle;">集成创新</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_031" style="vertical-align: middle;" name="innovate" label="引进消化吸收再创新" value="03" /><span style="vertical-align: middle;">引进消化吸收再创新</span></label>&nbsp; &nbsp; &nbsp; 
	<input type="hidden" name="proposal/innovate_value" id="innovate_value" class="required" value="<x:out select="$xmlData/data/proposal/innovate_value" />" label="创新类型" /> 
	<input type="hidden" name="proposal/innovate_name" id="innovate_name" value="<x:out select="$xmlData/data/proposal/innovate_name" />" label="创新类型" /></td>
	</tr>
	<tr class="li_1">
	<td  align="right" nowrap><span class="color_red">*</span>申报领域：</td>
	<td colspan="3">
			 <c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			<c:set var="sub"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
			<c:set var="domain">{'id':'<x:out select="$xmlData/data/proposal/domain_value" />','name':'<x:out select="$xmlData/data/proposal/domain_name" />'}</c:set>
          	<cpt:tree key="domain1" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${domain}"  label="申报领域"
          		id="domain" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue3" sqlParamVal="{grant_code:${sub},stat_year:${param.statYear}}"/>
	        <input id="domain_value" type="hidden" name="proposal/domain_value" class="required" label="申报领域" value="<x:out select="$xmlData/data/proposal/domain_value" />"/>
            <input id="domain_name" type="hidden" name="proposal/domain_name"  value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
			 <c:if test="${sub =='514' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="01" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="工业" />
			</c:if>
			<c:if test="${sub =='515' }"><input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="02" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="农业" />
			</c:if>
			<c:if test="${sub =='516' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="03" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="社会发展" />
			</c:if> 
	</td>
	</tr>
	<!-- <tr style="display:none"></tr> -->
	<tr class="li_2">
	<td align="right"><span class="color_red">*</span>学科名称：</td>
   <td  colspan="3">
          	<c:set var="subject">{'id':'<x:out select="$xmlData/data/proposal/subject_code" />','name':'<x:out select="$xmlData/data/proposal/subject_name" />'}</c:set>
          	<cpt:tree key="medically" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${subject}"  label="学科名称"
          		id="subject" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2" />
	        <input id="subject_code" type="hidden" name="proposal/subject_code" class="required" label="学科名称" value="<x:out select="$xmlData/data/proposal/subject_code" />"/>
            <input id="subject_name" type="hidden" name="proposal/subject_name"  value="<x:out select="$xmlData/data/proposal/subject_name" />"/>
   </td>
	</tr>
	<tr class="li_1">
		<td align="right"><span class="color_red">*</span>归口管理部门：</td>
		<td colspan="3">
			<c:set var="recomend_org"><x:out select="$xmlData/data/proposal/recomend_org_value" /></c:set>
			<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}"  key="proposal_tjbm"  value="${recomend_org}" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" class="required" value="${recomend_org}" label="归口管理部门">
			<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
	</tr>
	<tr class="li_2">
	<td align="right"><span class="color_red">*</span>预期成果的作用：</td>
	<td nowrap  colspan="3" valign="middle">
	<label> <input type="checkbox" class="do " id="advant_01" style="vertical-align: middle;" name="innovate2" label="形成自主研发能力" value="01" /><span style="vertical-align: middle;">形成自主研发能力</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_02" style="vertical-align: middle;" name="innovate2" label="规模生产" value="02" /><span style="vertical-align: middle;">规模生产</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="checkbox" class="do " id="advant_03" style="vertical-align: middle;" name="innovate2" label="试点示范" value="03" /><span style="vertical-align: middle;">试点示范</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="checkbox" class="do " id="advant_04" style="vertical-align: middle;" name="innovate2" label="推广应用" value="04" /><span style="vertical-align: middle;">推广应用</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="checkbox" class="do " id="advant_05" style="vertical-align: middle;" name="innovate2" label="突破关键技术" value="05" /><span style="vertical-align: middle;">突破关键技术</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="checkbox" class="do " id="advant_06" style="vertical-align: middle;" name="innovate2" label="其他" value="06" /><span style="vertical-align: middle;">其他</span></label>&nbsp; &nbsp; &nbsp; 
	<input type="hidden" name="proposal/innovate2_value" id="innovate2_value" class="required" value="<x:out select="$xmlData/data/proposal/innovate2_value" />" label="预期成果的作用" /> 
	<input type="hidden" name="proposal/innovate2_name" id="innovate2_name" value="<x:out select="$xmlData/data/proposal/innovate2_name" />" label="预期成果的作用" /></td>
	</tr>
	
	<tr class="li_1">
	<td  align="right" nowrap><span class="color_red">*</span>开始日期：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap width="120px;"><span class="color_red">*</span>结束日期：</td>
		<td>
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	<tr class="li_2">
	    <td  align="right" nowrap width="20%"><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	</table>
   <jsp:include page="../org/prporg_hzdw3.jsp">
		<jsp:param value="${param.xmlstr}" name="xmlstr" />
	</jsp:include>
	<%-- <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息</td>
	</tr>
	
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息1</td>
	</tr>
	<tr style="display:none"></tr>
	<tr>
		<td align="right" width="20%"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1-->单位名称" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->单位地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="20%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
   <td width="30%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
   </td>
	<td align="right" width="20%"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td width="30%"><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css orgCard" onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right" width="120px;"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
	</tr>
	<tr>
		<td align="right" width="20%"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2-->单位名称" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->单位地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="20%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="30%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right" width="20%" ><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td width="30%" ><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css orgCard" onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right" width="120px;"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org3">
   <tr>
		<td    class="t_bar2" colspan="2">其他单位</td>
	</tr>
	<tr>
		<td align="right">其他单位：</td>
		<td width="20%"><input name="proposal/other_org" label="其他单位" type="text" required class="input_css required "  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/other_org" />"/></td>
	</tr>
</table> --%>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="psn">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
	</tr>
<tr>
		<td  align="right" ><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input size="12"  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr> 
</table>
<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
})
function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function setProjectPlace(op){
	var address = $("#address_value").val();
	if(op) address = '${address}';
	$("#address_name_other").removeClass("required");
	if(address == '02'){
		$("#address_name_other_span").show();
		$("#address_name_other").css("display","");
		$("#address_name_other").addClass("required");
	}else{
		$("#address_name_other_span").hide();
		$("#address_name_other").removeClass("required");
		$("#address_name_other").val("");
	}
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

</script>

